package com.bancomer.batch.transferes;

import com.bancomer.batch.pojo.FileHelper;
import com.bancomer.batch.util.LinuxCommand;

public class UploadHdfs {
	public static void uploadFilesHdfs(FileHelper fileHdfs) throws Exception{
		String command = "";
		command = "hadoop fs -put "+fileHdfs.getLocalPath()+fileHdfs.getName()+" "+fileHdfs.getHdfsPath();
		LinuxCommand.execute(command,true);
	}
}
